home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / BmpView / bmpView.jar / bmpView.class (.txt) next >
Encoding:
Java Class File  |  2002-01-31  |  900 b   |  27 lines

  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.midlet.MIDlet;
  3.  
  4. public class bmpView extends MIDlet {
  5.    private Display display = Display.getDisplay(this);
  6.    private MyCanvas canvas;
  7.  
  8.    public bmpView() {
  9.       this.canvas = new MyCanvas(this, this.display);
  10.    }
  11.  
  12.    protected void startApp() {
  13.       this.display.setCurrent(this.canvas);
  14.    }
  15.  
  16.    protected void pauseApp() {
  17.    }
  18.  
  19.    protected void destroyApp(boolean var1) {
  20.    }
  21.  
  22.    public void exitMIDlet() {
  23.       this.destroyApp(true);
  24.       ((MIDlet)this).notifyDestroyed();
  25.    }
  26. }
  27.